#import <Foundation/Foundation.h>
#import <MJExtension/MJExtension.h>

NS_ASSUME_NONNULL_BEGIN

@interface MNBaseRsp : NSObject
/// 请求标识符 用于区分不同的请求和返回
@property (nonatomic, assign) NSUInteger identifier;
/// 返回的原始对象
@property (nonatomic, strong) id responseObject;
/// 请求的原始error信息
@property (nonatomic, strong) NSError *error;
@property (nonatomic, strong) NSURLResponse *response;
/// 失败描述 error.localizedDescription
@property (nonatomic, strong) NSString *failureDescription;
/// 是否请求成功 建议
@property (nonatomic, assign) BOOL isSuccess;
/// 是否取消请求
@property (nonatomic, assign) BOOL isCancel;
/// 请求耗时 s
@property (nonatomic, assign) NSTimeInterval timeInterval;

#pragma mark- 固定返回格式

//***** 如果字段不同,则需要在子类重写get方法 *******//
@property (nonatomic, copy) NSString *message;
@property (nonatomic, assign) NSInteger code;
@property (nonatomic, assign) NSInteger status;
@property (nonatomic, copy) NSString *successful;
@end

NS_ASSUME_NONNULL_END
